package com.chance.cc.crawler.development.command.publish.tianmao;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.tianmao.TianmaoProductCommentCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.trigger.domain.tianmao.TianmaoCommentScheduleTrigger;

/**
 * @author bx
 * @date 2020/12/7 0007 11:36
 */
public class TMCommentPublishCrawlerJob {

    public static void main(String[] args) {

        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = TianmaoProductCommentCrawlerScheduleJob.publishTMCommentSchedulerJob();
        TianmaoCommentScheduleTrigger.publishTMCommentScheduleTriggerInfo(crawlerJob.generateCrawlerKey(),crawlerJob.generateCrawlerTriggerKey());
//        TianmaoCrawlerScript.publishCrawlerNodeScript();
    }
}
